package com.example.sc.learn.service;

import com.example.sc.learn.entity.BiningRoom;
import com.example.sc.learn.entity.EatRecord;
import com.example.sc.learn.entity.User;

import java.util.List;

/**
 * Created by baipan
 * Date: 2019-03-30
 */
public interface BiningBusinessService {

    void insertUser(User user) throws Exception;

    User selectByUserCode(String userCode) throws Exception;

    void insertBinBingRoom(BiningRoom entity);

    BiningRoom selectBiningRoomByCode(String biningCode);

    void insertEatRecord(EatRecord eatRecord);

    List<EatRecord> queryBiningByUserCode(String userCode);

    List<EatRecord> queryBiningByBiningCode(String biningCode);

    List<BiningRoom> selectAllBiningRoom();

    List<EatRecord> selectEatRecordByBiningCode(String biningRoomCode);

    List<User> selectTopThreeUser(String bingRoomCode);
}
